import { _decorator, Component, Node } from 'cc';
import Singleton from '../../../FrameWork3.8.6/FrameWork/Common/Singleton';
import { EquipmentDt, PlayerDt, PlayerSkillDt, ShiBingDt } from '../../../FrameWork3.8.6/FrameWork/Common/CommonInterface';
import { BagManager } from './BagManager';
import { DataMgr } from '../../../FrameWork3.8.6/FrameWork/Data/DataMgr';
import { PlayerDtMgr, PlayerSkillDtMgr } from '../../../FrameWork3.8.6/FrameWork/Data/DataBaseMgr';
import { Player } from '../Object/Player';
const { ccclass, property } = _decorator;

@ccclass('GameManager')
export class GameManager extends Singleton<GameManager>() {
    //是否是第一次进来游戏，提前给基础装备
    public isFirstEnter:boolean=true;
    //当前关卡通关数据要求
    public requirements:any[]=[];
    //当前关卡产生的敌人ID
    public enemyID:number[];

    //当前关卡的道具ID
    public propID:number[];
    //当前游戏逻辑是否执行,默认不暂停
    public timePause:boolean=false;

    //当前游戏的金币值
    public coinNum:number=0;

    //这里需要记录玩家所携带的技能信息，所携带的兵种信息玩家数据表
    //public player:Player=null;

    public playerDt:PlayerDt=null;
    protected _init(): void {
        this.playerDt=DataMgr.instance.getMgr<PlayerDtMgr>("PlayerDtMgr").getCurData();
    }
}


